package makabakaquestionnaire.zutsoftware.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel(description = "填写设置实体，选项存在extend属性上")
@Data
@NoArgsConstructor
public class ProjectSetting {
    private Long id;
    /**
     * 项目key
     */
    private String projectKey;

    private Boolean isEveryoneDayWriteOnce;
    /**
     * 填写之后提示
     */
    private String writeOnceTipsText;
    /**
     * 填写通知创建问卷人邮件
     */
    private String newWriteNotifyEmail;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date collectionBeginTime;

    //@DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date collectionEndTime;

    /**
     * 定时未启动提示文字
     */
    private String notEnabledTipsText;
    /**
     * 定时停用会提示文字
     */
    private String stoppedTipsText;

    /**
     * 分享图片
     */
    private String shareImage;
    /**
     * 分享标题
     */
    private String shareTitle;
    /**
     * 分享描述
     */
    private String shareDesc;

    private Date createTime;//注册时间
    private Date updateTime; //问卷更新时间
    /**
     * 填写超过一次提示文字
     */
    private String repeatEnterText;
    /**
     *是否开启消息通知
     */
    private Boolean messageInform;
    private int spareThree;//备用字段
}
